﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mengsk.ProxyDelivery.App.UI.Order
{
    public class OrderChangeViewModel
    {

        public Mengsk.ProxyDelivery.Domain.Order Order { get; set; }

        public Mengsk.ProxyDelivery.Domain.OrderGoods OrderGoods { get; set; }

        public Mengsk.ProxyDelivery.Domain.OrderChange OrderChange { get; set; }

        public string GoodsInfo
        {
            get
            {
                return this.OrderChange.GoodsInfo;
            }
        }

        public string GoodsStock
        {
            get { if (this.OrderGoods == null) return ""; return this.OrderGoods.Color + " " + this.OrderGoods.Size; }
        }

        public double Price
        {
            get
            {
                return this.OrderChange.GoodsMoney / this.OrderChange.Count;
            }
        }

        public int Count
        {
            get
            {
                return this.OrderChange.Count;
            }
        }
    }
}
